package com.demo.aidlservice;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import androidx.annotation.Nullable;

public class StateSeActivity extends Activity {

        Button mBtnShowSet, mBtnHideSet;

        @Override
        protected void onCreate(@Nullable Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                setContentView(R.layout.set);

                mBtnShowSet = findViewById(R.id.show);
                mBtnHideSet = findViewById(R.id.hide);

                mBtnShowSet.setOnClickListener(new View.OnClickListener() {
                        @Override
                        public void onClick(View v) {
                                State.type = State.SHOW;
                        }
                });

                mBtnHideSet.setOnClickListener(new View.OnClickListener() {
                        @Override
                        public void onClick(View v) {
                                State.type = State.HIDE;
                        }
                });
        }
}
